# -*- coding: utf-8 -*-
# @Time    : 2021/2/19 下午8:53
# @Author  : tangbing
# @Email   : tangbingb@chanjet.com

from hashlib import md5


def my_md5(msg):
    """
    md5 算法加密
    :param msg: 需加密的字符串
    :return: 加密后的字符
    """
    hl = md5()
    hl.update(msg.encode('utf-8'))
    return hl.hexdigest()


print(my_md5('111111'))
